package Test;
import Service.*;

import java.io.IOException;
import java.text.ParseException;

public class ServiceTest {
    public static void main(String[] args) throws IOException, ParseException {
        UserService userService = new UserService();
        userService.login("S10001", "654321");
        UserService.changePassword("S10001", "123456");
        UserService.queryUserInfo("S10001");

        CardService.openAccount("S10002");
        CardService.changeCardStatus("C10002", "冻结");
        CardService.changeCardStatus("C10002", "正常");
        CardService.getBalance("S10002");
        CardService.recharge("S10002", 200.0);
        CardService.consume("S10002", 100.0);
        CardService.deleteCard("S10002");
        CardService.openAccount("S10002");

        TransactionService.viewCardTransactions("C10001");
    }
}
